package labelsystem.Service;

import labelsystem.Pojo.Doctor;
import labelsystem.Pojo.Order;
import labelsystem.Pojo.Text;
import labelsystem.Pojo.Video;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author MCG
 * @projectName careOlder
 * @Description TODO
 * @time 2023/3/19 19:35
 */
@Service
public interface doctorService {

    /*
     * @description:处理登陆逻辑
     * @param: phone 电话号码  password 密码
     * @return: 登陆成功返回true,否则返回false
     * @author MCG
     * @date: 2023/3/7 16:55
     */
    public boolean loginInByPassword(String telephone, String password);

    public boolean loginByVerifyCode(String input, String code);



    /*
     * @description:注册医生界
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/24 20:55
     */
    public Doctor registerDoctor(String name,String gender,String grade,String workplace,String specify,Long phone,String url,String password,Float price,String introduction,String veUrl,Float rating);


    public Doctor queryPersonalInfo(Long doctorId);

    public Doctor queryInfoByTel(Long phone);





    /*
     * @description:提交文章
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/24 20:56
     */
    public boolean saveText(Long doctorId,String url);

    public boolean saveVideo(Long doctorId,String url);

    /*
     * @description:查看自己服务过的订单
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/24 21:12
     */

    public List<Order> selectOrders(Long doctorId);
    public List<Text>  selectTexts(Long doctorId);
    public List<Video> selectRadio(Long doctorId);


    /*
     * @description:更新信息
     * @param: null
     * @return:
     * @author MCG
     * @date: 2023/3/30 16:54
     */
    public Doctor updateInfo(Doctor doctor);



}
